﻿using System.Linq;

namespace XYZ_Inventory
{
    public static class RoleManager
    {
        public static string GetRole(string username)
        {
            XYZDBContext db = new XYZDBContext();
            return db.UserCredentials.Single(x => x.Username == username).Role;
        }
    }
}